/**
 * 订单 api 封装
 *
 * @Author:    syf
 * @Date:      2025-05-16 10:02:50
 * @Copyright  畅想科技
 */
import { postRequest, getRequest } from '/@/lib/axios';

export const orderApi = {
  /**
   * 分页查询  @author  syf
   */
  queryPageByJdyId : (param) => {
    return postRequest('/order/queryPageByJdyId', param);
  },
  /**
   * 分页查询  @author  syf
   */
  queryPage : (param) => {
    return postRequest('/order/queryPage', param);
  },
  queryNum(){
    return getRequest('/order/queryNum');
  },
  /**
   * 增加  @author  syf
   */
  add: (param) => {
      return postRequest('/order/add', param);
  },

  /**
   * 修改  @author  syf
   */
  update: (param) => {
      return postRequest('/order/update', param);
  },


  /**
   * 删除  @author  syf
   */
  delete: (id) => {
      return getRequest(`/order/delete/${id}`);
  },

  /**
   * 批量删除  @author  syf
   */
  batchDelete: (idList) => {
      return postRequest('/order/batchDelete', idList);
  },
    //查询专业类型 @author syf
  queryType: (param) => {
      return getRequest('/order/queryType', param);
  },
  queryEnum: (param) => {
    return getRequest('/order/queryEnum', param);
},
  detail: (id) => {
    return getRequest(`/order/detail/${id}`);
  },   
};
